local clear = require("table.opt.clear")
local out = {}
-- 将二进制数据转换为十六进制字符串表示
return function (hexstr)
    local list = clear(out)
    for i = 1, #hexstr do
        local hex = string.byte(hexstr, i)
        local str = string.format("%02X", hex)
        table.insert(list, str)
    end
    return table.concat(list)
end
